import request from '@/utils/request'

export function listquestion(data) {
    return request({
      url: '"/api/ts/examination_question/page',
      method: 'post',
      data
    })
  }


// 试题保存接口

export function pushsaveList (data) {
  return request({
    url: '/api/ts/examination_question/save',
    method: 'post',
    data
  })
}


//试题获取接口
export function getsaveList (data) {
  return request({
    url: '/api/ts/examination_question/page',
    method: 'post',
    data
  })
}


// 试题删除接口
export function deleteTestquestions (data) {
  return request({
    url: '/api/ts/examination_question/delete',
    method: 'post',
    data
  })
}

//试题编辑获取接口
export function compileTestquestions (data) {
  return request({
    url: '/api/ts/examination_question/get',
    method: 'post',
    data
  })
}

// 试题编辑保存接口
export function CompileUpdate (data) {
  return request({
    url: '/api/ts/examination_question/update',
    method: 'post',
    data
  })
}

//通过试卷id获取试卷试题数据
export function pageByPaperId (data) {
  return request({
    url: '/api/ts/examination_question/page_by_paper_id',
    method: 'post',
    data
  })
}


/**
 * 获取字典信息
 * @data{
  documentReleaseIds:number
}
 */
export function listDictTreeItem(data) {
  return request({
    url: '/api/base/dict/list_tree_item',
    method: 'post',
    data
  })
}



/**
 * 统计题目个数
 * @data{
  documentReleaseIds:number
}
 */
export function countExaminationQuestion(data) {
  return request({
    url: '/api/ts/examination_question/count',
    method: 'post',
    data
  })
}